<template>
    <div>
        <My2/>
        小诗诗
        <!--使用组件-->
        <My/>
    </div>
</template>

<script>
    //导入组件
    import My from "../components/My.vue"
    import My2 from "../components/My2.vue"
    export default {
        name: "home",
        //注册组件
        components:{
            My,My2
        }
    }
</script>

<style scoped>

</style>